package com.yaya.spring.mybatis;

import com.yaya.spring.mybatis.config.MybatisConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * BeanFactoryPostTest
 *
 * @author zhougf
 * @date 2019/9/26
 */
public class BeanFactoryPostTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(MybatisConfig.class);
        System.out.println(annotationConfigApplicationContext.getBean("orderService"));
        System.out.println(annotationConfigApplicationContext.getBean("orderService"));
    }
}
